package com.aaa.member.service;

import com.aaa.common.bo.CouponHistory;
import com.aaa.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient("marketServer")
public interface CouponService {
    /**
     * 调用远程查询会员可用优惠券方法
     * @param map
     * @return
     */
    @PostMapping("/couponHistory/queryUseCoupon")
    Result queryUseCoupon(@RequestBody Map map);

    /**
     * 调用远程修改会员优惠券关联表信息方法
     * @param couponHistory
     * @return
     */
    @PutMapping("/couponHistory/update")
    Result update(@RequestBody CouponHistory couponHistory);
}
